package com.sky.constant;

import java.util.HashMap;
import java.util.Map;
/**
 * 映射重复字段名称
 */
public class DuplicateNameMapping {
    public static final Map<String, String> NAME_MAPPING = new HashMap<>();
    static {
        NAME_MAPPING.put("idx_phone", "手机号");
        NAME_MAPPING.put("idx_id_number", "身份证");
        NAME_MAPPING.put("idx_username", "用户名");
    }
    /**
     * 根据字段名获取字段名
     * @param key
     * @return
     */
    public static String getName(String key) {
        return NAME_MAPPING.get(key)==null?"":NAME_MAPPING.get(key);
    }
}
